package bean;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("CA")
public class CajaAhorro extends Cuenta {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static final double INTERES = 0.0125;

	public double interes() {
		return saldo*INTERES;
	}
	
	public void acreditarIntereses(){
		saldo += interes();
	}
}
